package com.example.demo.pojo;

import lombok.Data;

/**
 * @Classname BookBean
 * @Description TODO
 * @Date 2020/12/27 20:32
 * @Created by 新
 */
@Data
public class BookNameBean {
    //主键
    private Integer id;
    //书名
    private String bookName;

    public boolean equals(Object obj) {
        BookNameBean u = (BookNameBean) obj;
        return bookName.equals(u.bookName);
    }

    public int hashCode() {
        String in = bookName;
        return in.hashCode();
    }

}
